package com.yh.blog.domain;

import lombok.Data;
import lombok.ToString;

import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * 友链实体类
 */
@Data
@ToString
public class Friend {

    private int friendId;
    private String address;
    private String fname;
    private Date create_time;
    private String Img;

    public String formateTime(Date date) {
        SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return df.format(date);
    }
}
